package app.softtech.freechat.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import app.softtech.freechat.fragment.FriendListFragment;
import app.softtech.freechat.fragment.RecentFragment;

public class TabsPaperAdapter extends FragmentPagerAdapter {

	public TabsPaperAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int index) {
		switch(index){
		case 0:
			return new FriendListFragment();
		case 1:
			return new RecentFragment();
		}
		return null;
	}

	@Override
	public int getCount() {
		return 2;
	}

}
